<template>
<!-- 分类页 -->
  <div class="ict">
    <!-- 头部 -->
    <div class="type">
      <span class="iconfont" @click="goto()">&#xe779;</span>
     商品分类
      <router-link to="/home/search"
        ><span class="iconfont">&#xe86e;</span></router-link
      >
    </div>
    <!-- 组件 -->
    <tag></tag>
  </div>
</template>
<style lang="scss" scoped>
.ict {
  height: 50%;
  // 头部样式
  .type {
    text-align: center;
    line-height: 50px;
    font-size: 16px;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 9999;
    border-bottom: 1px solid #ccc;
    font-weight: bold;
    color: rgb(116, 116, 116);
    text-align: center;
    background-color: white;
    span {
      position: absolute;
      display: block;
      height: 50px;
      width: 40px;
    }
    a {
      display: block;
      span {
        position: absolute;
        display: block;
        height: 50px;
        color: rgb(116, 116, 116);
        font-size: 25px;
        width: 40px;
        right: 0;
        top: 0;
      }
    }
  }
}
</style>
<script>
import tag from "@/components/tag.vue";
export default {
  name: "ification",
  components: {
    tag,
  },
  methods: {
    // 返回上一级
    goto() {
      this.$router.go(-1);
    },
  },
};
</script>